<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>QuantumLibrary: Bloomberg::quantum::Promise&lt; T &gt; Class Template Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">QuantumLibrary
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('d1/d15/classBloomberg_1_1quantum_1_1Promise.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="../../d7/d25/classBloomberg_1_1quantum_1_1Promise-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Bloomberg::quantum::Promise&lt; T &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Class representing a promised value.  
 <a href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="../../d5/da1/quantum__icoro__promise_8h_source.html">quantum_icoro_promise.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Bloomberg::quantum::Promise&lt; T &gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.png" usemap="#Bloomberg::quantum::Promise_3C_20T_20_3E_map" alt=""/>
  <map id="Bloomberg::quantum::Promise_3C_20T_20_3E_map" name="Bloomberg::quantum::Promise_3C_20T_20_3E_map">
<area href="../../df/de4/structBloomberg_1_1quantum_1_1IPromiseBase.html" title="Exposes methods to manipulate and access a promise." alt="Bloomberg::quantum::IPromiseBase" shape="rect" coords="0,56,608,80"/>
<area href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html" alt="Bloomberg::quantum::IThreadPromise&lt; Promise, T &gt;" shape="rect" coords="618,56,1226,80"/>
<area href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html" alt="Bloomberg::quantum::ICoroPromise&lt; Promise, T &gt;" shape="rect" coords="1236,56,1844,80"/>
<area href="../../d9/ddb/structBloomberg_1_1quantum_1_1ITerminate.html" title="Represents an object which can be terminated. This interface allows certain objects to be explicitly ..." alt="Bloomberg::quantum::ITerminate" shape="rect" coords="0,0,608,24"/>
<area href="../../db/db8/structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom.html" alt="Bloomberg::quantum::Traits::DerivedFrom&lt; Promise&lt; T &gt;, IThreadPromise&lt; Promise, T &gt;, IPromiseBase &gt;" shape="rect" coords="618,0,1226,24"/>
<area href="../../db/db8/structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom.html" alt="Bloomberg::quantum::Traits::DerivedFrom&lt; Promise&lt; T &gt;, ICoroPromise&lt; Promise, T &gt;, IPromiseBase &gt;" shape="rect" coords="1236,0,1844,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a632081b74c109e66c55e18ea4117fe4f"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#a632081b74c109e66c55e18ea4117fe4f">Ptr</a> = std::shared_ptr&lt; <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Promise</a>&lt; T &gt; &gt;</td></tr>
<tr class="separator:a632081b74c109e66c55e18ea4117fe4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_structBloomberg_1_1quantum_1_1IPromiseBase"><td colspan="2" onclick="javascript:toggleInherit('pub_types_structBloomberg_1_1quantum_1_1IPromiseBase')"><img src="../../closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="../../df/de4/structBloomberg_1_1quantum_1_1IPromiseBase.html">Bloomberg::quantum::IPromiseBase</a></td></tr>
<tr class="memitem:a50506be87412ef38d4bd954ff6285b3e inherit pub_types_structBloomberg_1_1quantum_1_1IPromiseBase"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/de4/structBloomberg_1_1quantum_1_1IPromiseBase.html#a50506be87412ef38d4bd954ff6285b3e">Ptr</a> = std::shared_ptr&lt; <a class="el" href="../../df/de4/structBloomberg_1_1quantum_1_1IPromiseBase.html">IPromiseBase</a> &gt;</td></tr>
<tr class="separator:a50506be87412ef38d4bd954ff6285b3e inherit pub_types_structBloomberg_1_1quantum_1_1IPromiseBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_structBloomberg_1_1quantum_1_1IThreadPromise"><td colspan="2" onclick="javascript:toggleInherit('pub_types_structBloomberg_1_1quantum_1_1IThreadPromise')"><img src="../../closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html">Bloomberg::quantum::IThreadPromise&lt; Promise, T &gt;</a></td></tr>
<tr class="memitem:a1ce02dae237c894712bbcf5944ce667f inherit pub_types_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html#a1ce02dae237c894712bbcf5944ce667f">ContextTag</a> = <a class="el" href="../../de/de9/structBloomberg_1_1quantum_1_1ThreadContextTag.html">ThreadContextTag</a></td></tr>
<tr class="separator:a1ce02dae237c894712bbcf5944ce667f inherit pub_types_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1e82db2454481d25c450d3abfb6b92a inherit pub_types_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html#af1e82db2454481d25c450d3abfb6b92a">Ptr</a> = std::shared_ptr&lt; <a class="el" href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html">IThreadPromise</a>&lt; <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Promise</a>, T &gt; &gt;</td></tr>
<tr class="separator:af1e82db2454481d25c450d3abfb6b92a inherit pub_types_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab90097118fc584e6cf48ebe6a4dc790a inherit pub_types_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html#ab90097118fc584e6cf48ebe6a4dc790a">Impl</a> = <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Promise</a>&lt; T &gt;</td></tr>
<tr class="separator:ab90097118fc584e6cf48ebe6a4dc790a inherit pub_types_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_structBloomberg_1_1quantum_1_1ICoroPromise"><td colspan="2" onclick="javascript:toggleInherit('pub_types_structBloomberg_1_1quantum_1_1ICoroPromise')"><img src="../../closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html">Bloomberg::quantum::ICoroPromise&lt; Promise, T &gt;</a></td></tr>
<tr class="memitem:a4f8f9f1d242c351ffb21743e668f8cd9 inherit pub_types_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html#a4f8f9f1d242c351ffb21743e668f8cd9">ContextTag</a> = <a class="el" href="../../dd/d45/structBloomberg_1_1quantum_1_1CoroContextTag.html">CoroContextTag</a></td></tr>
<tr class="separator:a4f8f9f1d242c351ffb21743e668f8cd9 inherit pub_types_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47c0bcd8812fab42118f7c987d9ae89a inherit pub_types_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html#a47c0bcd8812fab42118f7c987d9ae89a">Ptr</a> = std::shared_ptr&lt; <a class="el" href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html">ICoroPromise</a>&lt; <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Promise</a>, T &gt; &gt;</td></tr>
<tr class="separator:a47c0bcd8812fab42118f7c987d9ae89a inherit pub_types_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8258db46a62ca4439bacd5a0c5ddf1a9 inherit pub_types_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html#a8258db46a62ca4439bacd5a0c5ddf1a9">Impl</a> = <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Promise</a>&lt; T &gt;</td></tr>
<tr class="separator:a8258db46a62ca4439bacd5a0c5ddf1a9 inherit pub_types_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0ad555bf9dfa709076983d66edd359d4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#a0ad555bf9dfa709076983d66edd359d4">Promise</a> ()</td></tr>
<tr class="separator:a0ad555bf9dfa709076983d66edd359d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6377ce4da88d823a01c57d2847eb39df"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#a6377ce4da88d823a01c57d2847eb39df">~Promise</a> ()</td></tr>
<tr class="separator:a6377ce4da88d823a01c57d2847eb39df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb11ada5731c0bd66740a00afb2b2ffc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d1/d2d/structBloomberg_1_1quantum_1_1IThreadFutureBase.html#a7a5e5adf9e104bef3f570aace79ecf5c">IThreadFutureBase::Ptr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#acb11ada5731c0bd66740a00afb2b2ffc">getIThreadFutureBase</a> () const final</td></tr>
<tr class="memdesc:acb11ada5731c0bd66740a00afb2b2ffc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a thread-compatible interface used to access the associated future.  <a href="#acb11ada5731c0bd66740a00afb2b2ffc">More...</a><br /></td></tr>
<tr class="separator:acb11ada5731c0bd66740a00afb2b2ffc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c1896254390315ca496de30469bd9ba"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../dc/d82/structBloomberg_1_1quantum_1_1ICoroFutureBase.html#a8fdb9918c64ffca16815929757df77fe">ICoroFutureBase::Ptr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#a2c1896254390315ca496de30469bd9ba">getICoroFutureBase</a> () const final</td></tr>
<tr class="memdesc:a2c1896254390315ca496de30469bd9ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a coroutine-compatible interface used to access the associated future.  <a href="#a2c1896254390315ca496de30469bd9ba">More...</a><br /></td></tr>
<tr class="separator:a2c1896254390315ca496de30469bd9ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b1204d868ec9d7582dea9c124695b82"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a742e0d39218b80ae60f30d47ae58bbc9">ThreadFuturePtr</a>&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#a0b1204d868ec9d7582dea9c124695b82">getIThreadFuture</a> () const</td></tr>
<tr class="memdesc:a0b1204d868ec9d7582dea9c124695b82"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the associated thread future.  <a href="#a0b1204d868ec9d7582dea9c124695b82">More...</a><br /></td></tr>
<tr class="separator:a0b1204d868ec9d7582dea9c124695b82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a774002dc514111f16e550f584dd32f95"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a294434a555befbec5230f5ff03944878">CoroFuturePtr</a>&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#a774002dc514111f16e550f584dd32f95">getICoroFuture</a> () const</td></tr>
<tr class="memdesc:a774002dc514111f16e550f584dd32f95"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the associated coroutine future.  <a href="#a774002dc514111f16e550f584dd32f95">More...</a><br /></td></tr>
<tr class="separator:a774002dc514111f16e550f584dd32f95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a899050b84c34d99031cbca8a195d1148"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#a899050b84c34d99031cbca8a195d1148">terminate</a> () final</td></tr>
<tr class="memdesc:a899050b84c34d99031cbca8a195d1148"><td class="mdescLeft">&#160;</td><td class="mdescRight">Terminates the object.  <a href="#a899050b84c34d99031cbca8a195d1148">More...</a><br /></td></tr>
<tr class="separator:a899050b84c34d99031cbca8a195d1148"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac18d1bd78251444f071dae7b658c4eaf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#ac18d1bd78251444f071dae7b658c4eaf">valid</a> () const final</td></tr>
<tr class="memdesc:ac18d1bd78251444f071dae7b658c4eaf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines if this promise still has a shared state with the corresponding future object.  <a href="#ac18d1bd78251444f071dae7b658c4eaf">More...</a><br /></td></tr>
<tr class="separator:ac18d1bd78251444f071dae7b658c4eaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2b2b69d137c361491bb2d16f4b19246"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#ab2b2b69d137c361491bb2d16f4b19246">setException</a> (std::exception_ptr ex) final</td></tr>
<tr class="memdesc:ab2b2b69d137c361491bb2d16f4b19246"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set an exception in this promise.  <a href="#ab2b2b69d137c361491bb2d16f4b19246">More...</a><br /></td></tr>
<tr class="separator:ab2b2b69d137c361491bb2d16f4b19246"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb6ed0c52bae44655f8ac11e90f03cf9"><td class="memTemplParams" colspan="2">template&lt;class V , class  = NonBufferType&lt;T,V&gt;&gt; </td></tr>
<tr class="memitem:aeb6ed0c52bae44655f8ac11e90f03cf9"><td class="memTemplItemLeft" align="right" valign="top">int&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#aeb6ed0c52bae44655f8ac11e90f03cf9">set</a> (V &amp;&amp;value)</td></tr>
<tr class="separator:aeb6ed0c52bae44655f8ac11e90f03cf9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f0623eb0540b230e2134de89dac4d3a"><td class="memTemplParams" colspan="2">template&lt;class V , class  = BufferType&lt;T,V&gt;&gt; </td></tr>
<tr class="memitem:a3f0623eb0540b230e2134de89dac4d3a"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#a3f0623eb0540b230e2134de89dac4d3a">push</a> (V &amp;&amp;value)</td></tr>
<tr class="separator:a3f0623eb0540b230e2134de89dac4d3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af60936e2276d97f464ae19a881322a95"><td class="memTemplParams" colspan="2">template&lt;class V , class  = NonBufferType&lt;T,V&gt;&gt; </td></tr>
<tr class="memitem:af60936e2276d97f464ae19a881322a95"><td class="memTemplItemLeft" align="right" valign="top">int&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#af60936e2276d97f464ae19a881322a95">set</a> (<a class="el" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html#a109b2c4b7d70d53d48bb640a9d849b29">ICoroSync::Ptr</a> sync, V &amp;&amp;value)</td></tr>
<tr class="separator:af60936e2276d97f464ae19a881322a95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04d4a67e84d5c7d64c6d6f5145827af1"><td class="memTemplParams" colspan="2">template&lt;class V , class  = BufferType&lt;T,V&gt;&gt; </td></tr>
<tr class="memitem:a04d4a67e84d5c7d64c6d6f5145827af1"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#a04d4a67e84d5c7d64c6d6f5145827af1">push</a> (<a class="el" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html#a109b2c4b7d70d53d48bb640a9d849b29">ICoroSync::Ptr</a> sync, V &amp;&amp;value)</td></tr>
<tr class="separator:a04d4a67e84d5c7d64c6d6f5145827af1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ce957251d540aeb1cac0cc81fc74087"><td class="memTemplParams" colspan="2">template&lt;class V  = T, class  = BufferRetType&lt;V&gt;&gt; </td></tr>
<tr class="memitem:a4ce957251d540aeb1cac0cc81fc74087"><td class="memTemplItemLeft" align="right" valign="top">int&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#a4ce957251d540aeb1cac0cc81fc74087">closeBuffer</a> ()</td></tr>
<tr class="separator:a4ce957251d540aeb1cac0cc81fc74087"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_structBloomberg_1_1quantum_1_1ITerminate"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_structBloomberg_1_1quantum_1_1ITerminate')"><img src="../../closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="../../d9/ddb/structBloomberg_1_1quantum_1_1ITerminate.html">Bloomberg::quantum::ITerminate</a></td></tr>
<tr class="memitem:a4086a8ce16fc2482ee77701d387b14d8 inherit pub_methods_structBloomberg_1_1quantum_1_1ITerminate"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/ddb/structBloomberg_1_1quantum_1_1ITerminate.html#a4086a8ce16fc2482ee77701d387b14d8">~ITerminate</a> ()=default</td></tr>
<tr class="memdesc:a4086a8ce16fc2482ee77701d387b14d8 inherit pub_methods_structBloomberg_1_1quantum_1_1ITerminate"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual destructor. This function is explicitly left empty.  <a href="../../d9/ddb/structBloomberg_1_1quantum_1_1ITerminate.html#a4086a8ce16fc2482ee77701d387b14d8">More...</a><br /></td></tr>
<tr class="separator:a4086a8ce16fc2482ee77701d387b14d8 inherit pub_methods_structBloomberg_1_1quantum_1_1ITerminate"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_structBloomberg_1_1quantum_1_1IThreadPromise"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_structBloomberg_1_1quantum_1_1IThreadPromise')"><img src="../../closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html">Bloomberg::quantum::IThreadPromise&lt; Promise, T &gt;</a></td></tr>
<tr class="memitem:a0b9f36ef976ba85a4c295dc529ac6514 inherit pub_methods_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html#a0b9f36ef976ba85a4c295dc529ac6514">IThreadPromise</a> (<a class="el" href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html#ab90097118fc584e6cf48ebe6a4dc790a">Impl</a> *derived)</td></tr>
<tr class="memdesc:a0b9f36ef976ba85a4c295dc529ac6514 inherit pub_methods_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html#a0b9f36ef976ba85a4c295dc529ac6514">More...</a><br /></td></tr>
<tr class="separator:a0b9f36ef976ba85a4c295dc529ac6514 inherit pub_methods_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa20cb305dbdeea0569fd66acae135cd2 inherit pub_methods_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html#aa20cb305dbdeea0569fd66acae135cd2">set</a> (V &amp;&amp;value)</td></tr>
<tr class="memdesc:aa20cb305dbdeea0569fd66acae135cd2 inherit pub_methods_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the promised value.  <a href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html#aa20cb305dbdeea0569fd66acae135cd2">More...</a><br /></td></tr>
<tr class="separator:aa20cb305dbdeea0569fd66acae135cd2 inherit pub_methods_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1daff44dbd6d5daf7a576dd4fdb55884 inherit pub_methods_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html#a1daff44dbd6d5daf7a576dd4fdb55884">push</a> (V &amp;&amp;value)</td></tr>
<tr class="memdesc:a1daff44dbd6d5daf7a576dd4fdb55884 inherit pub_methods_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="mdescLeft">&#160;</td><td class="mdescRight">Push a single value into the promise buffer.  <a href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html#a1daff44dbd6d5daf7a576dd4fdb55884">More...</a><br /></td></tr>
<tr class="separator:a1daff44dbd6d5daf7a576dd4fdb55884 inherit pub_methods_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f8c0ac8bc69a7e6265a3d2d24a9d00b inherit pub_methods_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html#a4f8c0ac8bc69a7e6265a3d2d24a9d00b">closeBuffer</a> ()</td></tr>
<tr class="memdesc:a4f8c0ac8bc69a7e6265a3d2d24a9d00b inherit pub_methods_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="mdescLeft">&#160;</td><td class="mdescRight">Close a promise buffer.  <a href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html#a4f8c0ac8bc69a7e6265a3d2d24a9d00b">More...</a><br /></td></tr>
<tr class="separator:a4f8c0ac8bc69a7e6265a3d2d24a9d00b inherit pub_methods_structBloomberg_1_1quantum_1_1IThreadPromise"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom')"><img src="../../closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="../../db/db8/structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom.html">Bloomberg::quantum::Traits::DerivedFrom&lt; Promise&lt; T &gt;, IThreadPromise&lt; Promise, T &gt;, IPromiseBase &gt;</a></td></tr>
<tr class="memitem:a58de90b9397ea0c48c3cbe37866ddb3d inherit pub_methods_structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/db8/structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom.html#a58de90b9397ea0c48c3cbe37866ddb3d">~DerivedFrom</a> ()=default</td></tr>
<tr class="separator:a58de90b9397ea0c48c3cbe37866ddb3d inherit pub_methods_structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a488bbb59ef434e73158404132fb73e47 inherit pub_methods_structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/db8/structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom.html#a488bbb59ef434e73158404132fb73e47">operator IPromiseBase *</a> ()</td></tr>
<tr class="separator:a488bbb59ef434e73158404132fb73e47 inherit pub_methods_structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb49ed2f85e01510de43aa05dc3a4563 inherit pub_methods_structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/db8/structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom.html#afb49ed2f85e01510de43aa05dc3a4563">operator IPromiseBase &amp;</a> ()</td></tr>
<tr class="separator:afb49ed2f85e01510de43aa05dc3a4563 inherit pub_methods_structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_structBloomberg_1_1quantum_1_1ICoroPromise"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_structBloomberg_1_1quantum_1_1ICoroPromise')"><img src="../../closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html">Bloomberg::quantum::ICoroPromise&lt; Promise, T &gt;</a></td></tr>
<tr class="memitem:a63eea5b5603a5b215a927889143ad69d inherit pub_methods_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html#a63eea5b5603a5b215a927889143ad69d">ICoroPromise</a> (<a class="el" href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html#a8258db46a62ca4439bacd5a0c5ddf1a9">Impl</a> *derived)</td></tr>
<tr class="memdesc:a63eea5b5603a5b215a927889143ad69d inherit pub_methods_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html#a63eea5b5603a5b215a927889143ad69d">More...</a><br /></td></tr>
<tr class="separator:a63eea5b5603a5b215a927889143ad69d inherit pub_methods_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a962692a27f424841f5fc00ede4e6aa56 inherit pub_methods_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html#a962692a27f424841f5fc00ede4e6aa56">set</a> (<a class="el" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html#a109b2c4b7d70d53d48bb640a9d849b29">ICoroSync::Ptr</a> sync, V &amp;&amp;value)</td></tr>
<tr class="memdesc:a962692a27f424841f5fc00ede4e6aa56 inherit pub_methods_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the promised value.  <a href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html#a962692a27f424841f5fc00ede4e6aa56">More...</a><br /></td></tr>
<tr class="separator:a962692a27f424841f5fc00ede4e6aa56 inherit pub_methods_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6b20a026f8e96948fdf06a87f20bf7c inherit pub_methods_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html#ad6b20a026f8e96948fdf06a87f20bf7c">push</a> (<a class="el" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html#a109b2c4b7d70d53d48bb640a9d849b29">ICoroSync::Ptr</a> sync, V &amp;&amp;value)</td></tr>
<tr class="memdesc:ad6b20a026f8e96948fdf06a87f20bf7c inherit pub_methods_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="mdescLeft">&#160;</td><td class="mdescRight">Push a single value into the promise buffer.  <a href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html#ad6b20a026f8e96948fdf06a87f20bf7c">More...</a><br /></td></tr>
<tr class="separator:ad6b20a026f8e96948fdf06a87f20bf7c inherit pub_methods_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b0b76678c43404f0797da0105ec7b7f inherit pub_methods_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html#a3b0b76678c43404f0797da0105ec7b7f">closeBuffer</a> ()</td></tr>
<tr class="memdesc:a3b0b76678c43404f0797da0105ec7b7f inherit pub_methods_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="mdescLeft">&#160;</td><td class="mdescRight">Close a promise buffer.  <a href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html#a3b0b76678c43404f0797da0105ec7b7f">More...</a><br /></td></tr>
<tr class="separator:a3b0b76678c43404f0797da0105ec7b7f inherit pub_methods_structBloomberg_1_1quantum_1_1ICoroPromise"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom')"><img src="../../closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="../../db/db8/structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom.html">Bloomberg::quantum::Traits::DerivedFrom&lt; Promise&lt; T &gt;, ICoroPromise&lt; Promise, T &gt;, IPromiseBase &gt;</a></td></tr>
<tr class="memitem:a58de90b9397ea0c48c3cbe37866ddb3d inherit pub_methods_structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/db8/structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom.html#a58de90b9397ea0c48c3cbe37866ddb3d">~DerivedFrom</a> ()=default</td></tr>
<tr class="separator:a58de90b9397ea0c48c3cbe37866ddb3d inherit pub_methods_structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a488bbb59ef434e73158404132fb73e47 inherit pub_methods_structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/db8/structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom.html#a488bbb59ef434e73158404132fb73e47">operator IPromiseBase *</a> ()</td></tr>
<tr class="separator:a488bbb59ef434e73158404132fb73e47 inherit pub_methods_structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb49ed2f85e01510de43aa05dc3a4563 inherit pub_methods_structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/db8/structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom.html#afb49ed2f85e01510de43aa05dc3a4563">operator IPromiseBase &amp;</a> ()</td></tr>
<tr class="separator:afb49ed2f85e01510de43aa05dc3a4563 inherit pub_methods_structBloomberg_1_1quantum_1_1Traits_1_1DerivedFrom"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a9f915cb745ab15ba7883bcab6ecc754b"><td class="memItemLeft" align="right" valign="top">static void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#a9f915cb745ab15ba7883bcab6ecc754b">operator new</a> (size_t size)</td></tr>
<tr class="separator:a9f915cb745ab15ba7883bcab6ecc754b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b2d07dbea2cc4b19e0d417084659ecc"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#a0b2d07dbea2cc4b19e0d417084659ecc">operator delete</a> (void *p)</td></tr>
<tr class="separator:a0b2d07dbea2cc4b19e0d417084659ecc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2cba4d0efb0eb09be81f033b5550418d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html#a2cba4d0efb0eb09be81f033b5550418d">deleter</a> (<a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Promise</a>&lt; T &gt; *p)</td></tr>
<tr class="separator:a2cba4d0efb0eb09be81f033b5550418d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class T&gt;<br />
class Bloomberg::quantum::Promise&lt; T &gt;</h3>

<p>Class representing a promised value. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Type of value returned by the promise. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>See <a class="el" href="../../df/de4/structBloomberg_1_1quantum_1_1IPromiseBase.html" title="Exposes methods to manipulate and access a promise.">IPromiseBase</a>, <a class="el" href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html" title="Exposes methods to access and manipulate a non-coroutine promise (i.e. used in a thread)">IThreadPromise</a> and <a class="el" href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html" title="Exposes methods to access and manipulate a coroutine-compatible promise.">ICoroPromise</a> interfaces for usage details. </dd></dl>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a632081b74c109e66c55e18ea4117fe4f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a632081b74c109e66c55e18ea4117fe4f">&#9670;&nbsp;</a></span>Ptr</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::<a class="el" href="../../df/de4/structBloomberg_1_1quantum_1_1IPromiseBase.html#a50506be87412ef38d4bd954ff6285b3e">Ptr</a> =  std::shared_ptr&lt;<a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Promise</a>&lt;T&gt; &gt;</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a0ad555bf9dfa709076983d66edd359d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ad555bf9dfa709076983d66edd359d4">&#9670;&nbsp;</a></span>Promise()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::<a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Promise</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a6377ce4da88d823a01c57d2847eb39df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6377ce4da88d823a01c57d2847eb39df">&#9670;&nbsp;</a></span>~Promise()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::~<a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Promise</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a4ce957251d540aeb1cac0cc81fc74087"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ce957251d540aeb1cac0cc81fc74087">&#9670;&nbsp;</a></span>closeBuffer()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<div class="memtemplate">
template&lt;class V , class &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::closeBuffer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a2cba4d0efb0eb09be81f033b5550418d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2cba4d0efb0eb09be81f033b5550418d">&#9670;&nbsp;</a></span>deleter()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::deleter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Promise</a>&lt; T &gt; *&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a774002dc514111f16e550f584dd32f95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a774002dc514111f16e550f584dd32f95">&#9670;&nbsp;</a></span>getICoroFuture()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a294434a555befbec5230f5ff03944878">CoroFuturePtr</a>&lt; T &gt; <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::getICoroFuture </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the associated coroutine future. </p>
<dl class="section return"><dt>Returns</dt><dd>An interface to the associated future object sharing a common state. </dd></dl>

<p>Implements <a class="el" href="../../d7/dc1/structBloomberg_1_1quantum_1_1ICoroPromise.html#a2ad0c521263cddf365c3000c5a01e614">Bloomberg::quantum::ICoroPromise&lt; Promise, T &gt;</a>.</p>

</div>
</div>
<a id="a2c1896254390315ca496de30469bd9ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c1896254390315ca496de30469bd9ba">&#9670;&nbsp;</a></span>getICoroFutureBase()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d82/structBloomberg_1_1quantum_1_1ICoroFutureBase.html#a8fdb9918c64ffca16815929757df77fe">ICoroFutureBase::Ptr</a> <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::getICoroFutureBase </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get a coroutine-compatible interface used to access the associated future. </p>
<dl class="section return"><dt>Returns</dt><dd>An interface to the associated future. </dd></dl>

<p>Implements <a class="el" href="../../df/de4/structBloomberg_1_1quantum_1_1IPromiseBase.html#a3aeb93c1441cfa2d7ac633a12f04782b">Bloomberg::quantum::IPromiseBase</a>.</p>

</div>
</div>
<a id="a0b1204d868ec9d7582dea9c124695b82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b1204d868ec9d7582dea9c124695b82">&#9670;&nbsp;</a></span>getIThreadFuture()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d48/namespaceBloomberg_1_1quantum.html#a742e0d39218b80ae60f30d47ae58bbc9">ThreadFuturePtr</a>&lt; T &gt; <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::getIThreadFuture </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the associated thread future. </p>
<dl class="section return"><dt>Returns</dt><dd>An interface to the associated future object sharing a common state. </dd></dl>

<p>Implements <a class="el" href="../../da/deb/structBloomberg_1_1quantum_1_1IThreadPromise.html#a55aba3f73fdac67237ff2e65e51e6dcb">Bloomberg::quantum::IThreadPromise&lt; Promise, T &gt;</a>.</p>

</div>
</div>
<a id="acb11ada5731c0bd66740a00afb2b2ffc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb11ada5731c0bd66740a00afb2b2ffc">&#9670;&nbsp;</a></span>getIThreadFutureBase()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d1/d2d/structBloomberg_1_1quantum_1_1IThreadFutureBase.html#a7a5e5adf9e104bef3f570aace79ecf5c">IThreadFutureBase::Ptr</a> <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::getIThreadFutureBase </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get a thread-compatible interface used to access the associated future. </p>
<dl class="section return"><dt>Returns</dt><dd>An interface to the associated future. </dd></dl>

<p>Implements <a class="el" href="../../df/de4/structBloomberg_1_1quantum_1_1IPromiseBase.html#a76b3b5d5b01fca63778ff3fd32a93608">Bloomberg::quantum::IPromiseBase</a>.</p>

</div>
</div>
<a id="a0b2d07dbea2cc4b19e0d417084659ecc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b2d07dbea2cc4b19e0d417084659ecc">&#9670;&nbsp;</a></span>operator delete()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::operator delete </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a9f915cb745ab15ba7883bcab6ecc754b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f915cb745ab15ba7883bcab6ecc754b">&#9670;&nbsp;</a></span>operator new()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void * <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::operator new </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a3f0623eb0540b230e2134de89dac4d3a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f0623eb0540b230e2134de89dac4d3a">&#9670;&nbsp;</a></span>push() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<div class="memtemplate">
template&lt;class V , class &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::push </td>
          <td>(</td>
          <td class="paramtype">V &amp;&amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a04d4a67e84d5c7d64c6d6f5145827af1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04d4a67e84d5c7d64c6d6f5145827af1">&#9670;&nbsp;</a></span>push() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<div class="memtemplate">
template&lt;class V , class &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::push </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html#a109b2c4b7d70d53d48bb640a9d849b29">ICoroSync::Ptr</a>&#160;</td>
          <td class="paramname"><em>sync</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">V &amp;&amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aeb6ed0c52bae44655f8ac11e90f03cf9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb6ed0c52bae44655f8ac11e90f03cf9">&#9670;&nbsp;</a></span>set() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<div class="memtemplate">
template&lt;class V , class &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::set </td>
          <td>(</td>
          <td class="paramtype">V &amp;&amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="af60936e2276d97f464ae19a881322a95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af60936e2276d97f464ae19a881322a95">&#9670;&nbsp;</a></span>set() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<div class="memtemplate">
template&lt;class V , class &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::set </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d3/d63/structBloomberg_1_1quantum_1_1ICoroSync.html#a109b2c4b7d70d53d48bb640a9d849b29">ICoroSync::Ptr</a>&#160;</td>
          <td class="paramname"><em>sync</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">V &amp;&amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ab2b2b69d137c361491bb2d16f4b19246"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2b2b69d137c361491bb2d16f4b19246">&#9670;&nbsp;</a></span>setException()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::setException </td>
          <td>(</td>
          <td class="paramtype">std::exception_ptr&#160;</td>
          <td class="paramname"><em>ex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set an exception in this promise. </p>
<p>When setting an exception inside a promise, any attempt to read a value from the associated future will re-throw this exception. Any threads or coroutines already blocked on this future will immediately unblock and re-throw. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">ex</td><td>An exception pointer which has been caught via std::current_exception. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success </dd></dl>

<p>Implements <a class="el" href="../../df/de4/structBloomberg_1_1quantum_1_1IPromiseBase.html#a0b80762c0abda93e8bca6af34e8c295e">Bloomberg::quantum::IPromiseBase</a>.</p>

</div>
</div>
<a id="a899050b84c34d99031cbca8a195d1148"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a899050b84c34d99031cbca8a195d1148">&#9670;&nbsp;</a></span>terminate()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::terminate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Terminates the object. </p>
<dl class="section note"><dt>Note</dt><dd>This method should contain all logic necessary to properly cleanup this instance. </dd></dl>

<p>Implements <a class="el" href="../../d9/ddb/structBloomberg_1_1quantum_1_1ITerminate.html#a66e42ce854b5afbb7742c5ffdaae8503">Bloomberg::quantum::ITerminate</a>.</p>

</div>
</div>
<a id="ac18d1bd78251444f071dae7b658c4eaf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac18d1bd78251444f071dae7b658c4eaf">&#9670;&nbsp;</a></span>valid()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Bloomberg::quantum::Promise</a>&lt; T &gt;::valid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Determines if this promise still has a shared state with the corresponding future object. </p>
<dl class="section return"><dt>Returns</dt><dd>True if valid, false otherwise. </dd></dl>

<p>Implements <a class="el" href="../../df/de4/structBloomberg_1_1quantum_1_1IPromiseBase.html#ae888884dbe9f6c8211d4a4c3c6d59ab1">Bloomberg::quantum::IPromiseBase</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d6/db9/namespaceBloomberg.html">Bloomberg</a></li><li class="navelem"><a class="el" href="../../dc/d48/namespaceBloomberg_1_1quantum.html">quantum</a></li><li class="navelem"><a class="el" href="../../d1/d15/classBloomberg_1_1quantum_1_1Promise.html">Promise</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
